<template>
  <div class="topWrap">
    <div>
      <img src="../../assets/new-logo.png" alt="" />
      <span>{{ logoTitle }}</span>
    </div>
    <ul>
      <li>个人中心</li>
      <li>设置</li>
      <li @click="change">退出</li>
    </ul>
  </div>
</template>

<script>
import { logoTitle } from "@/config";
export default {
  data() {
    return {
      logoTitle,
    };
  },
  methods: {
    change() {
      this.$router.push("./login");
    },
  },
};
</script>

<style lang='scss'>
.topWrap {
  height: 80px;
  display: flex;
  justify-content: space-between;
  padding: 0 50px;
  background: green;
  line-height: 80px;
  color: white;
  img {
    width: 50px;
    height: 50px;
    margin-top: 15px;
    vertical-align: top;
  }
  span {
    color: white;
    margin-left: 10px;
    font-size: 17px;
  }
  ul {
    list-style: none;
    display: flex;
    li {
      margin-left: 20px;
      cursor: pointer;
    }
    li:hover {
      color: #ccc;
    }
  }
}
</style>